PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Sparkle / Glimmer / LuxXx - Play v2.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=2.000 |
| 8 | fDecay=0.990 |
| 9 | fVideoEchoZoom=2.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=5 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=5.552 |
| 27 | fWaveSmoothing=0.504 |
| 28 | fWaveParam=-1.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.549 |
| 32 | fWarpScale=2.940 |
| 33 | fZoomExponent=0.02049 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00000 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=1.45984 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.000 |
| 55 | ib_r=1.000 |
| 56 | ib_g=1.000 |
| 57 | ib_b=1.000 |
| 58 | ib_a=1.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.50330 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.600 |
| 86 | wavecode_0_b=0.400 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1= |
| 89 | wave_0_per_point2=x0 = .5 + .4 * sin(time/2); |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=angle = rand(1000)/1000*6.28; |
| 92 | wave_0_per_point5=rad = rand(1000)/1000; |
| 93 | wave_0_per_point6=rad = rad * rad; |
| 94 | wave_0_per_point7= |
| 95 | wave_0_per_point8=x = x0 + .1*rad*sin(angle); |
| 96 | wave_0_per_point9=y = .5 + .1*rad*cos(angle); |
| 97 | wave_0_per_point10= a = 1-rad; |
| 98 | wavecode_1_enabled=0 |
| 99 | wavecode_1_samples=512 |
| 100 | wavecode_1_sep=0 |
| 101 | wavecode_1_bSpectrum=0 |
| 102 | wavecode_1_bUseDots=0 |
| 103 | wavecode_1_bDrawThick=1 |
| 104 | wavecode_1_bAdditive=1 |
| 105 | wavecode_1_scaling=1.00000 |
| 106 | wavecode_1_smoothing=0.50000 |
| 107 | wavecode_1_r=1.000 |
| 108 | wavecode_1_g=1.000 |
| 109 | wavecode_1_b=1.000 |
| 110 | wavecode_1_a=1.000 |
| 111 | wave_1_per_frame1=trel = q11-.0; |
| 112 | wave_1_per_frame2=t1 = int(trel); |
| 113 | wave_1_per_frame3=t2 = trel - int(trel); |
| 114 | wavecode_2_enabled=0 |
| 115 | wavecode_2_samples=512 |
| 116 | wavecode_2_sep=0 |
| 117 | wavecode_2_bSpectrum=0 |
| 118 | wavecode_2_bUseDots=0 |
| 119 | wavecode_2_bDrawThick=1 |
| 120 | wavecode_2_bAdditive=0 |
| 121 | wavecode_2_scaling=1.00000 |
| 122 | wavecode_2_smoothing=0.50000 |
| 123 | wavecode_2_r=1.000 |
| 124 | wavecode_2_g=1.000 |
| 125 | wavecode_2_b=1.000 |
| 126 | wavecode_2_a=1.000 |
| 127 | wave_2_per_frame1=trel = q11-.33; |
| 128 | wave_2_per_frame2=t1 = int(trel); |
| 129 | wave_2_per_frame3=t2 = trel - int(trel); |
| 130 | wavecode_3_enabled=0 |
| 131 | wavecode_3_samples=512 |
| 132 | wavecode_3_sep=0 |
| 133 | wavecode_3_bSpectrum=0 |
| 134 | wavecode_3_bUseDots=0 |
| 135 | wavecode_3_bDrawThick=1 |
| 136 | wavecode_3_bAdditive=1 |
| 137 | wavecode_3_scaling=1.00000 |
| 138 | wavecode_3_smoothing=0.50000 |
| 139 | wavecode_3_r=1.000 |
| 140 | wavecode_3_g=1.000 |
| 141 | wavecode_3_b=1.000 |
| 142 | wavecode_3_a=1.000 |
| 143 | wave_3_per_frame1=trel = q11-.66; |
| 144 | wave_3_per_frame2=t1 = int(trel); |
| 145 | wave_3_per_frame3=t2 = trel - int(trel); |
| 146 | shapecode_0_enabled=0 |
| 147 | shapecode_0_sides=100 |
| 148 | shapecode_0_additive=0 |
| 149 | shapecode_0_thickOutline=0 |
| 150 | shapecode_0_textured=1 |
| 151 | shapecode_0_num_inst=1 |
| 152 | shapecode_0_x=0.800 |
| 153 | shapecode_0_y=0.500 |
| 154 | shapecode_0_rad=0.24243 |
| 155 | shapecode_0_ang=0.00000 |
| 156 | shapecode_0_tex_ang=1.88496 |
| 157 | shapecode_0_tex_zoom=1.72851 |
| 158 | shapecode_0_r=0.800 |
| 159 | shapecode_0_g=1.000 |
| 160 | shapecode_0_b=0.500 |
| 161 | shapecode_0_a=0.600 |
| 162 | shapecode_0_r2=0.900 |
| 163 | shapecode_0_g2=0.900 |
| 164 | shapecode_0_b2=1.000 |
| 165 | shapecode_0_a2=0.300 |
| 166 | shapecode_0_border_r=1.000 |
| 167 | shapecode_0_border_g=1.000 |
| 168 | shapecode_0_border_b=1.000 |
| 169 | shapecode_0_border_a=0.000 |
| 170 | shapecode_1_enabled=0 |
| 171 | shapecode_1_sides=100 |
| 172 | shapecode_1_additive=0 |
| 173 | shapecode_1_thickOutline=0 |
| 174 | shapecode_1_textured=1 |
| 175 | shapecode_1_num_inst=1 |
| 176 | shapecode_1_x=0.130 |
| 177 | shapecode_1_y=0.190 |
| 178 | shapecode_1_rad=0.11045 |
| 179 | shapecode_1_ang=0.00000 |
| 180 | shapecode_1_tex_ang=3.14159 |
| 181 | shapecode_1_tex_zoom=1.71105 |
| 182 | shapecode_1_r=1.000 |
| 183 | shapecode_1_g=0.000 |
| 184 | shapecode_1_b=1.000 |
| 185 | shapecode_1_a=1.000 |
| 186 | shapecode_1_r2=1.000 |
| 187 | shapecode_1_g2=1.000 |
| 188 | shapecode_1_b2=1.000 |
| 189 | shapecode_1_a2=1.000 |
| 190 | shapecode_1_border_r=1.000 |
| 191 | shapecode_1_border_g=1.000 |
| 192 | shapecode_1_border_b=1.000 |
| 193 | shapecode_1_border_a=0.000 |
| 194 | shapecode_2_enabled=0 |
| 195 | shapecode_2_sides=5 |
| 196 | shapecode_2_additive=1 |
| 197 | shapecode_2_thickOutline=0 |
| 198 | shapecode_2_textured=0 |
| 199 | shapecode_2_num_inst=1 |
| 200 | shapecode_2_x=0.900 |
| 201 | shapecode_2_y=0.500 |
| 202 | shapecode_2_rad=0.22613 |
| 203 | shapecode_2_ang=0.00000 |
| 204 | shapecode_2_tex_ang=0.00000 |
| 205 | shapecode_2_tex_zoom=1.00000 |
| 206 | shapecode_2_r=1.000 |
| 207 | shapecode_2_g=0.200 |
| 208 | shapecode_2_b=0.200 |
| 209 | shapecode_2_a=1.000 |
| 210 | shapecode_2_r2=0.000 |
| 211 | shapecode_2_g2=0.000 |
| 212 | shapecode_2_b2=0.000 |
| 213 | shapecode_2_a2=0.000 |
| 214 | shapecode_2_border_r=1.000 |
| 215 | shapecode_2_border_g=1.000 |
| 216 | shapecode_2_border_b=0.000 |
| 217 | shapecode_2_border_a=0.000 |
| 218 | shapecode_3_enabled=0 |
| 219 | shapecode_3_sides=36 |
| 220 | shapecode_3_additive=1 |
| 221 | shapecode_3_thickOutline=0 |
| 222 | shapecode_3_textured=0 |
| 223 | shapecode_3_num_inst=1 |
| 224 | shapecode_3_x=0.500 |
| 225 | shapecode_3_y=0.500 |
| 226 | shapecode_3_rad=0.18717 |
| 227 | shapecode_3_ang=0.00000 |
| 228 | shapecode_3_tex_ang=0.00000 |
| 229 | shapecode_3_tex_zoom=1.00000 |
| 230 | shapecode_3_r=0.000 |
| 231 | shapecode_3_g=0.020 |
| 232 | shapecode_3_b=0.000 |
| 233 | shapecode_3_a=1.000 |
| 234 | shapecode_3_r2=0.000 |
| 235 | shapecode_3_g2=0.000 |
| 236 | shapecode_3_b2=0.000 |
| 237 | shapecode_3_a2=0.000 |
| 238 | shapecode_3_border_r=1.000 |
| 239 | shapecode_3_border_g=1.000 |
| 240 | shapecode_3_border_b=1.000 |
| 241 | shapecode_3_border_a=0.000 |
| 242 | per_frame_init_1=x1 = 0; |
| 243 | per_frame_init_2=y1 = 0; |
| 244 | per_frame_1=//q1 = 0; |
| 245 | per_frame_2=v = 0.8; |
| 246 | per_frame_3=j1 = j1*0.95 + sqr(bass*4)*v; |
| 247 | per_frame_4=j2 = j2*0.95 + sqr(mid*4)*v; |
| 248 | per_frame_5=j3 = j3*0.95 + sqr(treb*4)*v; |
| 249 | per_frame_6= |
| 250 | per_frame_7=n = n + j1*0.0052; |
| 251 | per_frame_8=n1 = n1 + j2*0.0052; |
| 252 | per_frame_9=n2 = n2 + j3*0.0052; |
| 253 | per_frame_10= |
| 254 | per_frame_11= |
| 255 | per_frame_12=q12 = n*0.01; |
| 256 | per_frame_13=q13 = n1*0.01; |
| 257 | per_frame_14=q14 = n2*0.01; |
| 258 | per_frame_15= |
| 259 | per_frame_16=k = k*0.99 + sqr(mid_att*2); |
| 260 | per_frame_17=q25 = k*0.00; |
| 261 | per_frame_18= |
| 262 | per_frame_19=zoom = 0.995; |
| 263 | per_frame_20=warp = 0; |
| 264 | per_frame_21= |
| 265 | per_frame_22=rot = -0.00; |
| 266 | per_frame_23= |
| 267 | per_frame_24=w = -0.46; |
| 268 | per_frame_25=q21 = sin(w); |
| 269 | per_frame_26=q22 = cos(w); |
| 270 | per_frame_27= |
| 271 | per_frame_28=w = -n*0.001; |
| 272 | per_frame_29=q23 = sin(w); |
| 273 | per_frame_30=q24 = cos(w); |
| 274 | per_frame_31=q29 = n1*0.004; |
| 275 | per_frame_32=q30 = n2*0.004; |
| 276 | per_frame_33= |
| 277 | per_frame_34=//before inversion |
| 278 | per_frame_35=scale = 3; |
| 279 | per_frame_36=angle = (n1-n2)*0.0004; |
| 280 | per_frame_37=translation_x = 0; |
| 281 | per_frame_38=translation_y = 0.02; |
| 282 | per_frame_39= |
| 283 | per_frame_40=//complex inverted |
| 284 | per_frame_41=iscale = 0.2; |
| 285 | per_frame_42=iangle = sin(time*0.1337)*0.04; |
| 286 | per_frame_43=itranslation_u = 0; |
| 287 | per_frame_44=itranslation_v = 0; |
| 288 | per_frame_45= |
| 289 | per_frame_46= |
| 290 | per_frame_47=// the m�bius transformation |
| 291 | per_frame_48=// z -> (az+b)/(cz-d); where a,b,c,d are complex numbers and z will be the uv-vector |
| 292 | per_frame_49=// (az+b)/(cz-d) = a/c + mu/(cz+d), with mu = (bc-ad)/c |
| 293 | per_frame_50=// so a/c and mu can be calculated outside of the shader |
| 294 | per_frame_51= |
| 295 | per_frame_52=a_r = cos(angle)*scale; |
| 296 | per_frame_53=a_i = sin(angle)*scale; |
| 297 | per_frame_54=b_r = translation_x; |
| 298 | per_frame_55=b_i = translation_y; |
| 299 | per_frame_56= |
| 300 | per_frame_57=c_r = -cos(iangle)*iscale; |
| 301 | per_frame_58=c_i = -sin(iangle)*iscale; |
| 302 | per_frame_59=d_r = itranslation_u; |
| 303 | per_frame_60=d_i = itranslation_v; |
| 304 | per_frame_61= |
| 305 | per_frame_62=// c^(-1) |
| 306 | per_frame_63=c_inv_r = c_r/(c_r*c_r+c_i*c_i); |
| 307 | per_frame_64=c_inv_i = c_i/(c_r*c_r+c_i*c_i); |
| 308 | per_frame_65= |
| 309 | per_frame_66=// a*c^(-1) |
| 310 | per_frame_67=ac_r = (a_r*c_inv_r - a_i*c_inv_i); |
| 311 | per_frame_68=ac_i = (a_r*c_inv_i - a_i*c_inv_r); |
| 312 | per_frame_69= |
| 313 | per_frame_70=// (bc-ad) |
| 314 | per_frame_71=bcad_r = (b_r*c_r - b_i*c_i)-(a_r*d_r-a_i*d_i); |
| 315 | per_frame_72=bcad_i = (b_r*c_i - b_i*c_r)-(a_r*d_i-a_i*d_r); |
| 316 | per_frame_73= |
| 317 | per_frame_74=// mu*c^(-1) |
| 318 | per_frame_75=q3 = bcad_r*c_inv_r - bcad_i*c_inv_i; |
| 319 | per_frame_76=q4 = bcad_r*c_inv_i - bcad_i*c_inv_r; |
| 320 | per_frame_77= |
| 321 | per_frame_78=q1 = ac_r; |
| 322 | per_frame_79=q2 = ac_i; |
| 323 | per_frame_80= |
| 324 | per_frame_81=q5 = c_r; |
| 325 | per_frame_82=q6 = c_i; |
| 326 | per_frame_83=q7 = d_r; |
| 327 | per_frame_84=q8 = d_i; |
| 328 | per_pixel_1=r = bass/4; |
| 329 | per_pixel_2=cx1 = 0.5+sin(time*0.618)*0.2; |
| 330 | per_pixel_3=cy1 = 0.5+cos(time*1.618)*0.2; |
| 331 | per_pixel_4=d = sqrt((x-cx1)*(x-cx1)+(y-cy1)*(y-cy1)); |
| 332 | per_pixel_5=dir = (bass)*(r*r-d*d)*0.3; |
| 333 | per_pixel_6=x1 = if( above(d,r),0, sin(y-cy1)*dir); |
| 334 | per_pixel_7=y1 = if( above(d,r),0, -sin(x-cx1)*dir); |
| 335 | per_pixel_8= |
| 336 | per_pixel_9= |
| 337 | per_pixel_10=cx1 = 0.5+sin(time*2.618)*0.3; |
| 338 | per_pixel_11=cy1 = 0.5+cos(time*3.14)*0.3; |
| 339 | per_pixel_12=d = sqrt((x-cx1)*(x-cx1)+(y-cy1)*(y-cy1)); |
| 340 | per_pixel_13=dir = -(mid)*(r*r-d*d)*0.3; |
| 341 | per_pixel_14=x2 = if( above(d,r),0, sin(y-cy1)*dir); |
| 342 | per_pixel_15=y2 = if( above(d,r),0, -sin(x-cx1)*dir); |
| 343 | per_pixel_16= |
| 344 | per_pixel_17=cx1 = 0.5+sin(-time*2.618)*0.4; |
| 345 | per_pixel_18=cy1 = 0.5+cos(-time*1.14)*0.4; |
| 346 | per_pixel_19=d = sqrt((x-cx1)*(x-cx1)+(y-cy1)*(y-cy1)); |
| 347 | per_pixel_20=dir = -(treb)*(r*r-d*d)*0.3; |
| 348 | per_pixel_21=x3 = if( above(d,r),0, sin(y-cy1)*dir); |
| 349 | per_pixel_22=y3 = if( above(d,r),0, -sin(x-cx1)*dir); |
| 350 | per_pixel_23= |
| 351 | per_pixel_24=v = 0.4; |
| 352 | per_pixel_25=dx = (x1+x2+x3)*v; |
| 353 | per_pixel_26=dy = (y1+y2+y3)*v; |
| 354 | warp_1=`sampler sampler_worms; |
| 355 | warp_2=`float3 color, mus; |
| 356 | warp_3=`float dx,dy; |
| 357 | warp_4=`shader_body { |
| 358 | warp_5=`float2 uv1 = (uv-.5) * aspect.xy; |
| 359 | warp_6=` |
| 360 | warp_7=` |
| 361 | warp_8=`float2 uv6 = uv1; |
| 362 | warp_9=`float z = q29*2*length(uv1)+rand_frame * 64; |
| 363 | warp_10=`float2 d = normalize(uv1); |
| 364 | warp_11=`float2 rs = clamp(tan(z)*d,-8,8); |
| 365 | warp_12=`uv += .01*lum(GetBlur1(uv))*float2 (0,1); |
| 366 | warp_13=` |
| 367 | warp_14=` |
| 368 | warp_15=`uv6 = .4*sin(uv*8+rand_frame*6); |
| 369 | warp_16=`mus = .1/(length(uv6)); |
| 370 | warp_17=`mus *= (1+roam_cos)/2; |
| 371 | warp_18=` |
| 372 | warp_19=`float3 blur = GetBlur2(frac(uv)); |
| 373 | warp_20=` |
| 374 | warp_21=`float3 crisp= tex2D(sampler_main,uv); |
| 375 | warp_22=` |
| 376 | warp_23=`float3 ret1 = crisp - blur*.03 + .1*mus; |
| 377 | warp_24=`//float2 uv2 = (uv_orig-.5)-float2(.5,.5+0.1*q25); |
| 378 | warp_25=` |
| 379 | warp_26=`q25 = 1; |
| 380 | warp_27=`ret = q25*(ret1*.99-.02) + (1-q25)* GetPixel(uv_orig); |
| 381 | warp_28=` |
| 382 | warp_29=`} |
| 383 | comp_1=`float3 ret1, neu, crisp, blur; |
| 384 | comp_2=`float2 uv2, uv3; |
| 385 | comp_3=` |
| 386 | comp_4=`shader_body |
| 387 | comp_5=`{ |
| 388 | comp_6=`float ang2, c, s; |
| 389 | comp_7=`uv -= 0.5; |
| 390 | comp_8=`uv *= aspect.xy; |
| 391 | comp_9=` |
| 392 | comp_10=`float2 tmp = uv; |
| 393 | comp_11=`float dist = 1; |
| 394 | comp_12=`float inten = 1; |
| 395 | comp_13=`float mask = 0; |
| 396 | comp_14=`ret1 = 0; |
| 397 | comp_15=`int anz = 3; |
| 398 | comp_16=`float n = 0; |
| 399 | comp_17=`float t_rel = q29; |
| 400 | comp_18=`while (n <= anz) { |
| 401 | comp_19=` ang2 = 6.28*n/anz+q30; |
| 402 | comp_20=` c = cos(ang2); |
| 403 | comp_21=` s = sin(ang2); |
| 404 | comp_22=` uv2.x = uv.x*c - uv.y*s; |
| 405 | comp_23=` uv2.y = uv.x*s + uv.y*c; |
| 406 | comp_24=` uv2*= aspect.yx; |
| 407 | comp_25=` |
| 408 | comp_26=` dist = 1-frac(n/anz+t_rel); //evtl sqrt ! |
| 409 | comp_27=` |
| 410 | comp_28=` inten = 4*dist*(1-dist*dist); |
| 411 | comp_29=` uv3 = 3*uv2*dist + 0.5+.0*float2(q5,q6); |
| 412 | comp_30=` crisp = GetPixel(uv3); |
| 413 | comp_31=` blur = GetBlur1(frac(uv3)) * float3 (.8,.9,1); |
| 414 | comp_32=` ret1 = max(ret1,(crisp+blur)*inten); |
| 415 | comp_33=`n++; |
| 416 | comp_34=`} |
| 417 | comp_35=` |
| 418 | comp_36=` |
| 419 | comp_37=`float3 ret1 = ret1 ; |
| 420 | comp_38=`//ret1 = GetPixel(.5+uv_orig*aspect.yx*1.2); |
| 421 | comp_39=` |
| 422 | comp_40=` |
| 423 | comp_41=`ret = ret1-.1; |
| 424 | comp_42=` |
| 425 | comp_43=`} |